---
title: Agent with Tools
---

## Code

```python cookbook/models/siliconflow/tool_use.py
from agno.agent import Agent
from agno.models.siliconflow import Siliconflow
from agno.tools.duckduckgo import DuckDuckGoTools

agent = Agent(
  model=Siliconflow(id="openai/gpt-oss-120b"),
  tools=[DuckDuckGoTools()],
  markdown=True,
)

agent.print_response("Whats happening in France?", stream=True)

```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

<Step title="Set your API key">```bash export SILICONFLOW_API_KEY=xxx ```</Step>

<Step title="Install libraries">
  ```bash pip install -U agno ddgs openai ```
</Step>

  <Step title="Run Agent">
    <CodeGroup>
    ```bash Mac
    python cookbook/models/siliconflow/tool_use.py
    ```

    ```bash Windows
    python cookbook/models/siliconflow/tool_use.py
    ```
    </CodeGroup>

  </Step>
</Steps>
